package com.ibuonline.b2b.common.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;


import com.ibuonline.b2b.batchjob.ClickCountThread;
import com.ibuonline.b2b.batchjob.DailyBatchJob;
import com.ibuonline.b2b.batchjob.SensitiveWordsThread;
import com.ibuonline.b2b.common.SysCache;

public class SystemInitializationListener implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent event) {
	}

	public void contextInitialized(ServletContextEvent event) {
		SysCache.getInstance().initialize();
		ClickCountThread.getInstance().start();
		SensitiveWordsThread.getInstance().start();
		new DailyBatchJob().start();
	}
}
